API Documentation
NodeWrapper.h
1 // NodeWrapper.h
3 //
5 
7 {
11  class DLL_ASTRAEUS_EXPORT NodeWrapper final
12  {
13  public :
14 
15  // Environment update
22 
23  // Callbacks
24  // Construction / destruction
35  static void* constructor (const nkScripts::DataStack& stack) ;
41  static void destructor (void* toDestroy) ;
42  // Getters
53  static nkScripts::OutputValue getString (void* node) ;
64  static nkScripts::OutputValue getInt (void* node) ;
75  static nkScripts::OutputValue getFloat (void* node) ;
86  static nkScripts::OutputValue getDouble (void* node) ;
97  static nkScripts::OutputValue getBool (void* node) ;
108  static nkScripts::OutputValue getNodeNature (void* node) ;
130  static nkScripts::OutputValue getArraySize (void* node) ;
164  // Setters
175  static void setString (const nkScripts::DataStack& stack) ;
186  static void setInt (const nkScripts::DataStack& stack) ;
197  static void setFloat (const nkScripts::DataStack& stack) ;
208  static void setDouble (const nkScripts::DataStack& stack) ;
219  static void setBool (const nkScripts::DataStack& stack) ;
242  } ;
243 }
nkAstraeus::lua::nkExportWrap::NodeWrapper::setInt
static void setInt(const nkScripts::DataStack &stack)
nkAstraeus::lua::nkExportWrap::NodeWrapper::getNodeNature
static nkScripts::OutputValue getNodeNature(void *node)
nkAstraeus::lua::nkExportWrap::NodeWrapper::updateEnvironment
static void updateEnvironment(nkScripts::Environment *env)
nkScripts::Environment
Defines an environment in which scripts can execute.
Definition: Environment.h:14
nkAstraeus::lua::nkExportWrap::NodeWrapper::setString
static void setString(const nkScripts::DataStack &stack)
nkAstraeus::lua::nkExportWrap::NodeWrapper::getArrayElement
static nkScripts::OutputValue getArrayElement(const nkScripts::DataStack &stack)
nkAstraeus::lua::nkExportWrap::NodeWrapper::setBool
static void setBool(const nkScripts::DataStack &stack)
nkAstraeus::lua::nkExportWrap::NodeWrapper::isValueTypeNumber
static nkScripts::OutputValue isValueTypeNumber(const nkScripts::DataStack &stack)
nkAstraeus::lua::nkExportWrap::NodeWrapper::setDouble
static void setDouble(const nkScripts::DataStack &stack)
nkAstraeus::lua::nkExportWrap::NodeWrapper::setFloat
static void setFloat(const nkScripts::DataStack &stack)
nkAstraeus::lua::nkExportWrap
Encompasses the wrapping of nkExport for Lua.
Definition: Constants.h:7
nkScripts::DataStack
std::vector< FunctionParameter > DataStack
A data stack, mainly used for parameters.
Definition: FunctionDefines.h:8
nkScripts::FunctionParameter
A function parameter, used within the stack of arguments.
Definition: FunctionParameter.h:25
nkAstraeus::lua::nkExportWrap::NodeWrapper
Wraps a nkExport::Node and offers functions for use in scripting.
Definition: NodeWrapper.h:12
nkAstraeus::lua::nkExportWrap::NodeWrapper::getMemberValue
static nkScripts::OutputValue getMemberValue(const nkScripts::DataStack &stack)
nkAstraeus::lua::nkExportWrap::NodeWrapper::getNodeValueType
static nkScripts::OutputValue getNodeValueType(void *node)
nkAstraeus::lua::nkExportWrap::NodeWrapper::getFloat
static nkScripts::OutputValue getFloat(void *node)
nkAstraeus::lua::nkExportWrap::NodeWrapper::getDouble
static nkScripts::OutputValue getDouble(void *node)
nkAstraeus::lua::nkExportWrap::NodeWrapper::destructor
static void destructor(void *toDestroy)
nkAstraeus::lua::nkExportWrap::NodeWrapper::getArraySize
static nkScripts::OutputValue getArraySize(void *node)
nkAstraeus::lua::nkExportWrap::NodeWrapper::getInt
static nkScripts::OutputValue getInt(void *node)
nkAstraeus::lua::nkExportWrap::NodeWrapper::addMember
static nkScripts::OutputValue addMember(const nkScripts::DataStack &stack)
nkAstraeus::lua::nkExportWrap::NodeWrapper::getString
static nkScripts::OutputValue getString(void *node)
nkAstraeus::lua::nkExportWrap::NodeWrapper::constructor
static void * constructor(const nkScripts::DataStack &stack)
nkAstraeus::lua::nkExportWrap::NodeWrapper::getBool
static nkScripts::OutputValue getBool(void *node)
nkAstraeus::lua::nkExportWrap::NodeWrapper::addElement
static nkScripts::OutputValue addElement(const nkScripts::DataStack &stack)